package listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import authentication.AuthenticationWorker;

import components.AuthenticationContentPanel;

public class LoginActionListener implements ActionListener
{
	private final AuthenticationContentPanel panel;

	public LoginActionListener(AuthenticationContentPanel panel)
	{
		this.panel = panel;
	}
	@Override
	public void actionPerformed(ActionEvent ae)
	{
		AuthenticationWorker worker = new AuthenticationWorker(panel);
		panel.setStatusText("Working . . . ");
		worker.execute();
	}
}
